<?php
    if($query->num_rows()>0){
        $admin_data = $query->row();
        $nom = $admin_data->titre;
        $description = $admin_data->description;
        $id = $admin_data->id;
    }
?>
<div id="wrapper-content1" align="left">
 <table class="titrepage" width="100%">
    <tr>
     <td >Modification contenus</td>
    </tr>
 </table>
 <div align="center"><?php echo form_error('titre')?><br/><td><?php echo form_error('txtDes')?></td></div>
<form   method="POST" id="formcheck" action="<?php echo site_url('SB_admin/modifier_contenu').'/'.$id?>" enctype="multipart/form-data">
<table class="list" width="100%">
            <tr>
                <td><span>TITRE </span></td>
                <td ><input class="medium" type="text" name="titre" value="<?php echo $nom?>">       
                </td>
            </tr>
            <tr>
                <td><span>DESCRIPTION </span></td>
                <td >                 
                <?php                                                                 
                    $data = array('name' => 'txtDes',
                    'value'=> $description,
                    'id' => 'txtDes',
                    'width' => '600',
                    'height' => '400');
                    echo form_fckeditor($data);
                ?>
                </td>
            </tr>
<tr><td></td><td><input type="submit" name="submit"  style="border:0; width: 160px;height: 30px;background: url(<?php echo base_url();?>assets/admin/images/ajouter.png);"  value=" " alt="Submit"></td></tr>
</table>
</form>
</div>
